package edu.suda.xsap.mapper;

import edu.suda.xsap.entity.Course;
import edu.suda.xsap.entity.Employee;
import edu.suda.xsap.entity.vo.ClassRecordVo;
import edu.suda.xsap.entity.vo.ReservationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {
    void save(Course course);
    void update(Course course);
    void delete(Integer id);
    Course findById(Integer id);
    Course findByName(String name);
    List<Course> findAll();

    List<ReservationVo> find(Integer id);

    List<ClassRecordVo> findClassRecord(Integer id);

    Integer findCount();

    List<Course> findByLimit(@Param("limit") Integer limit, @Param("offset") Integer offset);
}
